package com.yanqu.road.server.cmd.wingroom.shareevent;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.wingroom.WingRoomModule;
import com.yanqu.road.server.manger.wingroom.WingRoomMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @author ：zfr
 * @date ：2022/2/28 11:23
 */
@Cmd(code = GameProtocol.S_WING_ROOM_GET_FRIEND_LIST, desc = "厢房获取亲友列表")
public class GetWingRoomFriendListCmd extends AbstractCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        WingRoomMgr.getWingRoomFriendList(player);

        //暂时
        player.getModule(WingRoomModule.class).fetchCrossVisitReward();
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
